package adapter;

//电视机使用两厢插座
public class TV implements TwoElectricOutlet {
    private String name;

    public TV() {
        name = "长江电视机";
    }

    public TV(String name) {
        this.name = name;
    }

    public void connectElectricCurrent() {
        turnOn();
    }

    public void turnOn() {
        System.out.println(name + "开始播放电视节目");
    }

}